const { query } = require('../config/database')

async function checkUsers () {
  try {
    const users = await query(
      'SELECT id, email, username, role, is_vip, coins FROM users'
    )
    console.log('数据库中的用户:')
    console.table(users)
  } catch (error) {
    console.error('查询用户失败:', error)
  }
  process.exit(0)
}

checkUsers()
